package com.kitchen.ui.bg
{
	import flash.display.Sprite;

	public class BackGround extends Sprite
	{
		private var wallCont:Sprite;
		private var floorCont:Sprite;
		private var ceilCont:Sprite;
		private var counter:Sprite;
		private var decos:Array;
		private var comps:Array;
		
		public function BackGround()
		{
			super();
			this.decos = new Array();
			this.decos.push({'id':38,'nCrTime':1322467813,'nDid':2,'nExpTime':1322468813,'nPosit':1,'nPx':13,'nPy':13,'nPz':0,'nShopId':131,'nStatus':2,'nUid':1,'nUseTime':1322467813,'sName':'台灯','sUrl':"/static/kitchen/props/agreement_card.png"});
			this.layout();
		}

		private function layout():void{
			this.wallCont = new Sprite();
			this.addChild(this.wallCont);
			this.floorCont = new Sprite();
			this.addChild(this.floorCont);
			this.ceilCont = new Sprite();
			this.addChild(this.ceilCont);
			this.counter = new Sprite();
			this.addChild(
			for each(var row:Object in this.decos){
				if((row.nPosit == 1)||(row.nPosit == 2)){
					this.paintWall(row);
				}else if(row.nPosit ==){
					
				}else if(row.nPosit ==){
					
				}
			}
		}
		
		public function paintWall(row:Object):void{
			if(row.nPosit == 1){
				
			}
		}
		
		public function paintCeil(row:Object):void{
			this.ceilCont.addChild(new BackDeco(row));
		}
		
		public function paintFloor(row:Object):void{
			this.floorCont.addChild(new BackDeco(row));
		}
	}
}